/**
 * 
 */
package com.xpec.c4.service.module;

import java.util.concurrent.SynchronousQueue;
import java.util.concurrent.ThreadPoolExecutor;
import java.util.concurrent.TimeUnit;

/**
 * @author Eric_Wang
 *
 */
public class ThreadPool {
	
	static final private long KEEP_ALIVE_TIME = 10;

	static private ThreadPoolExecutor instance = new ThreadPoolExecutor(0, Integer.MAX_VALUE, KEEP_ALIVE_TIME, TimeUnit.MINUTES, new SynchronousQueue<Runnable>());
	
	static public ThreadPoolExecutor getInstance() {
		return instance;
	}

}

